<?php
include_once('common/header.php');
if($AppUI->id > 0) {
	$objOffline 	= new Offline();
	$strOfflineId	= '0';
	$intTotalMatch	= 0;
	$intTotal		= 0;
	$arrMatch		= $objOffline->getAllForMatch($AppUI->id,0,OFFLINE_TOP_LIMIT,$intTotalMatch);
	if($arrMatch) {
		foreach($arrMatch as $value) {
			$strOfflineId .= ',' . $value['offlineid'];
		}
	}
	$arrPublic		= $objOffline->getAll($AppUI->id,$strOfflineId,0,OFFLINE_LIMIT,$intTotal);
	$this->view->arrMatch		= $arrMatch;
	$this->view->arrPublic		= $arrPublic;
	$this->view->intTotal		= $intTotal;
	$this->view->intTotalMatch	= $intTotalMatch;
} else {
	Vfriend_Function::redirect(LINK_OFFLINE_PUBLIC);
}
?>